package b4.view.component.smithy
{
	import b4.view.component.basic.TitledPanel;
	
	import org.aswing.*;
	import org.aswing.border.*;
	
	public class BaseSmithy extends BaseTab
	{
		public var leftBottom :JPanel;
		public var leftPane :JPanel;
		public var rightPane:JPanel;
		public var leftTop:JPanel;
		public var leftContent:JPanel;
		public var textArea:JTextArea;
		public var thePane:JPanel;
		public var leftTopContent:JPanel;
		
		public function BaseSmithy(leftTopTitle:String="title", leftBottomTitle:String = "title")
		{
			super();

//			thePane = new JPanel();
//			thePane.setOpaque(true);
//			thePane.setLayout(new BoxLayout(BoxLayout.X_AXIS));
//			thePane.setSizeWH(500, 600);
//			thePane.setPreferredWidth(500);
//			append(thePane, FlowLayout.CENTER);
//			thePane.setBorder(new LineBorder(null,ASColor.BLACK));
			thePane = new JPanel();
			thePane.setPreferredHeight(600);
			thePane.setPreferredWidth(550);
			
			leftTop = new TitledPanel(leftTopTitle, 500, 150);
			leftTopContent = new JPanel(new BorderLayout());
			leftTopContent.setPreferredHeight(150);
			leftTopContent.setPreferredWidth(500);
			leftTop.append(leftTopContent, BorderLayout.CENTER);
 			leftContent = new TitledPanel(leftBottomTitle, 500, 100)
 			leftBottom = new JPanel();
 			leftBottom.setPreferredHeight(20);
 			leftBottom.setPreferredWidth(500);
 			textArea = new JTextArea("这里有字符", 500, 13);
 			textArea.setPreferredWidth(500);
 			leftContent.append(textArea);
 			thePane.appendAll(leftTop, new JScrollPane(leftContent), leftBottom);
 			append(thePane);
 
 
			
//			thePane.append(leftPane);
					
//			rightPane = new JPanel()
//			rightPane.setPreferredWidth(500);
//			rightPane.setPreferredHeight(230);
			
//			thePane.append(rightPane, FlowLayout.RIGHT);

//			rightPane.setBorder(new LineBorder(null,ASColor.BLUE));
		}


	}
}